package syntax_tree;

import visitor.TypeVisitor;
import visitor.Visitor;

public class TStatementIf extends TStatement{
	
	public TStatement st1, st2;
	public TExp exp;
	
	public TStatementIf(TExp exp,TStatement st1, TStatement st2){
		this.st1 = st1;
		this.st2 = st2;
		this.exp = exp;
	}
	
	public void accept(Visitor v) {
	    v.visit(this);
	}

	public TType accept(TypeVisitor v) {
	    return v.visit(this);
	}

}
